package com.example.demo.service.impl;

import com.example.demo.mapper.CountMapper;
import com.example.demo.pojo.vo.Count;
import com.example.demo.service.CountService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CountServiceImpl implements CountService {
    @Autowired
    private CountMapper countMapper;
    @Override
    public PageInfo<Count> listCount(Count count) {
        List<Count>counts=countMapper.listCount(count);
        return new PageInfo<>(counts);
    }
}
